import { defineStore } from 'pinia';
import { markRaw } from 'vue';
import { getStoreId } from './utils.js';

const id = getStoreId('AppDataStore');
export const useAppDataStore = defineStore(id, {
  state: () => ({}),
  actions: {
    setItem(key, value) {
      this[key] = markRaw(value);
    },
  },
});
